package org.algorithm.graph.bean;

/**
 * 边对象
 *
 * @author ztranscript 2021/8/14 11:05
 **/
public class Edge {
    /**
     * 距离，权重
     */
    public int weight;
    /**
     * 边起始点
     */
    public Node from;
    /**
     * 边结束点
     */
    public Node to;

    public Edge(int weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
